package com.wjerp.tplus.server.domain.service.impl;

import com.wjerp.tplus.server.domain.entity.sys.PermissionInfo;
import com.wjerp.tplus.server.domain.mapper.PermissionInfoMapper;
import com.wjerp.tplus.server.domain.service.PermissionInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author lishuailei
 */
@Service
public class PermissionInfoServiceImpl implements PermissionInfoService {

    @Resource
    private PermissionInfoMapper permissionInfoMapper;

    @Override
    public List<PermissionInfo> findPermissionListByRoleId(Long roleId) {
        return permissionInfoMapper.findPermissionListByRoleId(roleId);
    }

    @Override
    public List<PermissionInfo> findPermissionList() {
        return permissionInfoMapper.selectAll();
    }


}
